package FactoryPattern;

/**
 * @version: java version 1.8
 * @Author: Zheng
 * @description:
 * @date: 2022-08-10 19:33
 */
public class FactoryPatternDemo {
    public static void main(String[] args) {
        // 设置对应工厂
        ShapeFactory shapeFactory = new ShapeFactory();
        // 绘制模块内容
        Shape shape=shapeFactory.getShape("CIRCLE");
        // 绘制对应内容
        shape.draw();
    }
}
